import cv2
import numpy as np

# orb 特征提取
img = cv2.imread("C:\\Users\\86191\\Pictures\\Saved Pictures\\Camera Roll\\shudu.jpg")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
# 创建orb对象
orb = cv2.ORB_create()
# 检测关键点并计算描述子
kp,des= orb.detectAndCompute(gray,None)
# 绘制关键点
cv2.drawKeypoints(gray,kp,img,(255,0,0))
cv2.imshow("img",img)
cv2.waitKey(0)